﻿@model int

@{
    Layout = null;

    var cssClasses = new string[4];
    
    for (int i = 0; i < cssClasses.Length; i++)
    {
        if (i < Model - 1)
        {
            cssClasses[i] = "previous";
            continue;
        }

        cssClasses[i] = i == Model - 1 ? "active" : "inactive";
    }
}

<ul>
    <li class="@cssClasses[0]"><a href="@Url.Action("Index", "Setup")">01.Welcome</a></li>
    <li class="@cssClasses[1]"><a href="@Url.Action("Database", "Setup")">02.Database</a></li>
    <li class="@cssClasses[2]"><a href="@Url.Action("Authentication", "Setup")">03.Authentication</a></li>
    <li class="@cssClasses[3]"><a href="@Url.Action("Finish", "Setup")">04.Finish</a></li>
</ul>